- return if !Gitlab.com? || !License.feature_available?(:repository_mirrors)

- form = local_assigns.fetch(:form)

.form-group
  = form.label :mirror_max_delay, class: 'label-bold' do
    = _('Maximum delay (Minutes)')
  = form.number_field :mirror_max_delay, class: 'form-control gl-form-input', min: 0
  %span.form-text.text-muted#mirror_max_delay_help_block
    = _('Maximum time between updates that a mirror can have when scheduled to synchronize.')
.form-group
  = form.label :mirror_max_capacity, class: 'label-bold' do
    = _('Maximum capacity')
  = form.number_field :mirror_max_capacity, class: 'form-control gl-form-input', min: 0
  %span.form-text.text-muted#mirror_max_capacity_help_block
    = _('Maximum number of mirrors that can be synchronizing at the same time.')
.form-group
  = form.label :mirror_capacity_threshold, class: 'label-bold' do
    = _('Capacity threshold')
  = form.number_field :mirror_capacity_threshold, class: 'form-control gl-form-input', min: 0
  %span.form-text.text-muted#mirror_capacity_threshold
    = _('Minimum capacity to be available before we schedule more mirrors preemptively.')
